﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true"
    CodeBehind="matBudget.aspx.cs" Inherits="Fitment.User.matBudget" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="InputContentPlaceHolder" runat="server">
    <asp:Panel ID="Panel1" Height="400px" ScrollBars="Both" runat="server">
        <div align="center">
            <h2 align="left">
                当前位置：
                <asp:SiteMapPath ID="SiteMapPath1" runat="server">
                </asp:SiteMapPath>
            </h2>
            请输入您的总预算(元)：<asp:TextBox ID="tb_bgInput" runat="server" Style="margin-bottom: 0px"
                Width="128px"></asp:TextBox>
            &nbsp;&nbsp;&nbsp;
            <asp:Button ID="OK" runat="server" Text="确定" OnClick="OK_Click" Style="height: 26px" />
            &nbsp;&nbsp;&nbsp;&nbsp; 最低总预算(元)：<asp:TextBox ID="tb_bgMin" runat="server" Enabled="False"></asp:TextBox>
            &nbsp;&nbsp;&nbsp; 最终总预算(元)：<asp:TextBox ID="tb_bgRes" runat="server"></asp:TextBox>
            <br />
            <br />
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:GridView ID="gv_budget" runat="server" AutoGenerateColumns="False" Width="963px"
                        AllowPaging="True" CellPadding="3" GridLines="Vertical" BackColor="White" BorderColor="#999999"
                        BorderStyle="None" BorderWidth="1px" OnPageIndexChanging="gv_budget_PageIndexChanging"
                        OnRowCancelingEdit="gv_budget_RowCancelingEdit" OnRowEditing="gv_budget_RowEditing"
                        OnRowUpdating="gv_budget_RowUpdating">
                        <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                        <Columns>
                            <asp:TemplateField HeaderText="房间编号">
                                <ItemTemplate>
                                    <asp:Label ID="lb_roomId" runat="server" Text='<%# Bind("Room_ID") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="房间类型">
                                <ItemTemplate>
                                    <asp:Label ID="Label3" runat="server" Text='<%# Bind("RoomType") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="材料名">
                                <ItemTemplate>
                                    <asp:Label ID="lb_matName" runat="server" Text='<%# Bind("MatName") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="材料最低参考价(元/平方米)">
                                <ItemTemplate>
                                    <asp:Label ID="Label5" runat="server" Text='<%# Bind("Price_Area") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="材料最低参考价(元/个)">
                                <ItemTemplate>
                                    <asp:Label ID="Label6" runat="server" Text='<%# Bind("Price_Num") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="预算单价">
                                <ItemTemplate>
                                    <asp:Label ID="Label7" runat="server" Text='<%# Bind("Unit_Price") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="预算总价">
                                <EditItemTemplate>
                                    <asp:TextBox ID="tb_total" runat="server" Text='<%# Bind("Price") %>' Height="22px"></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("Price") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:CommandField HeaderText="修改预算总价" ShowEditButton="True" />
                        </Columns>
                        <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="Gainsboro" />
                    </asp:GridView>
                </ContentTemplate>
                <Triggers>
                    <asp:PostBackTrigger ControlID="gv_budget" />
                </Triggers>
            </asp:UpdatePanel>
            <br />
        </div>
        <div align="center">
            <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/next.gif" OnClick="ImageButton1_Click" />
            <br />
            下一步 (查看预算表)<br />
            <br />
            <asp:Label ID="lbExcel" runat="server" Text="生成Excel表中，请稍候..." Visible="False"></asp:Label>
        </div>
        <div>
            <br />
            <marquee direction="left" style="color: Purple">提示：初始预算是根据材料最低价来算的，这里的总预算并不包括固定的人工费，如果要修改材料费预算，请输入您的总预算，再点击确定。如果要调整各项材料的预算价格，单击编辑即可。</marquee>
        </div>
        <br />
        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/User/proDatePlan.aspx">安排工期</asp:HyperLink>
    </asp:Panel>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RemindContentPlaceHolder" runat="server">
</asp:Content>
